import http from '@/utils/request.js'

// 登陆
export const login = (data) => {
	return http.post('/api/auth/login', {
		...data
	})
}


//  注册
export const register = (data) => {
	return http.post('/api/auth/register', {
		...data
	})
}

//  重置密码
export const resetpwd = (data) => {
	return http.post('/api/auth/reset_pwd', {
		...data
	})
}


//  地区
export const areaData = (data) => {
	return http.post('/general/get_dict', {
		...data
	})
}

//  修改密码、头像、昵称
export const updateAll = (data) => {
	return http.post('/api/member/update', {
		...data
	})
}

//  上传图片
export const uploadFile = (data) => {
	return http.post('/api/upload', {
		...data
	})
}
//  上传图片
export const loginOut = (data) => {
	return http.post('/api/auth/logout', {
		...data
	})
}


